package cn.hackcloud.demo.dubbo;

import cn.hackcloud.demo.dubbo.bean.UserAddress;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class Call {
    public void onReturn(List<UserAddress> addresses, String userId) {
        System.out.println("msg = " + addresses);
    }

    public void onThrow(Throwable throwable, String userId) {
        throwable.printStackTrace();
    }
}
